/**
 * Created by yangfakuan on 2018/10/19.
 */
(function (e, r, t) {
    var o = r.rss;
    var i = r.localInfo;
    var n = i.reqClientType;
    var a = 103;
    var s = 103;
    var d = 203;
    var l = 203;
    var c = {
        oldUserAccount: "",
        oldAuthCode: "",
        newAccountType: "",
        newUserAccount: "",
        newAuthCode: "",
        EmailType: ""
    };
    var u = {};
    var p = function (r) {
        var t = r.accountInfoArr || [];
        var n = "";
        var a = r.queryCond;
        var s = r.optType;
        var d = r.desc;
        var l = r.operType;
        var c = r.checkOperType;
        var u = r.siteID;
        if (t.length == 0) {
            E(a, function (e) {
                t = e
            })
        }
        if (s == "bind" && t.length == 0) {
            e("<div>").Dialog({
                title: o.verifyLoginPwd,
                btnRight: {
                    text: r.rBtnTxt, fn: function () {
                        var t = this;
                        var o = e("#password").val();
                        var n = i.accountType;
                        T(n, a, o, function () {
                            t.hide();
                            var e = {oldAccountType: 0, oldUserAccount: a, password: o};
                            r.callbackFn.call(this, e)
                        })
                    }
                },
                btnLeft: {
                    text: o.cancel_btn, fn: function () {
                    }
                },
                dialogStyle: i.msgDialogStyle,
                html: '<span style="color:#999;">' + o.huaweiAccount_colon_space + '&nbsp;&nbsp;<span class="ar-eg">' + getExpressPhone(a) + "</span>" + '</span><div class="dinput"><span><input oncut="return false;" oncopy="return false" maxlength="32" id="password" type="password" placeholder="' + o.inputLingPwd + '"></span></div><p id="error_info"></p>'
            }).Dialog("show")
        } else {
            e.each(t, function (e, r) {
                r.value = JSON.stringify({type: r.accountType, account: r.userAccount})
            });
            if (d && d.length > 0) {
                n += '<div id="authenDialog"><p class="inptips2">' + d + "</p>"
            } else {
                n += '<div id="authenDialog">'
            }
            n += '<div class="line8-EMUI5"><div id="accountDiv"></div><input type="hidden" id="selectAccount" value="" /><input type="hidden" id="selectType" value="" /></div>';
            n += '<div class="dinput-UI5 " id="inputAuthCode" style="margin-bottom:0">';
            n += '<div class="getAuthbtn" id="getAuthCodeBtn" IntervalTime="60" ><span class="getAuthText">' + o.sendAuthCode + '</span><div id="authCodeError"></div></div>';
            n += '<div class="input-div"><input maxlength="8" id="oldAuthCode" type="text"   placeholder="' + o.inputAuthCodeTip + '"></div>';
            n += '</div> <div class="error-tips-EMUI5" id="auth_error_tip"></div>';
            n += "</div>";
            n += getAppealChangesLinkDiv(t, false, "margin-bottom:0px;");
            var p = o.enter_authcode_title;
            var f = {
                title: p, btnRight: {
                    text: r.rBtnTxt || o.ok, fn: function () {
                        var t = this;
                        if (!validator(e("#authenDialog"), true)) {
                            return false
                        }
                        if (s == "unbind" || s == "closeProtect") {
                            var o = e("#oldAuthCode").val();
                            var i = e.parseJSON(e("#accountDiv input").val());
                            var n = a;
                            var d = 1;
                            d = getAccountType(n);
                            var l = {
                                oldAccountType: i.type,
                                oldUserAccount: i.account,
                                oldAuthCode: o,
                                delAccountType: d,
                                delUserAccount: n
                            };
                            r.callbackFn(l, function () {
                                t.hide()
                            })
                        } else if (s == "verify") {
                            var u = e("#oldAuthCode").val();
                            r.chkAuthFn(u, t)
                        } else {
                            var o = e("#oldAuthCode").val();
                            var i = e.parseJSON(e("#accountDiv input").val());
                            if (r.chkAuthFn) {
                                r.chkAuthFn({oldUserAccount: i.account, oldAccountType: i.type, oldAuthCode: o})
                            } else {
                                x(i.account, i.type, o, 3, function (e) {
                                    t.hide();
                                    r.callbackFn.call(this, e)
                                }, c, e("#auth_error_tip"), e("#inputAuthCode"))
                            }
                        }
                    }
                }, btnLeft: {
                    text: r.lBtnTxt, fn: function () {
                    }
                }, html: n, dialogStyle: i.msgDialogStyle, beforeAction: function () {
                    var r = [];
                    if (t) {
                        e.each(t, function (e, t) {
                            var o = {
                                value: JSON.stringify({type: t.accountType, account: t.userAccount}),
                                label: getExpressPhone(t.userAccount)
                            };
                            r.push(o)
                        })
                    }
                    e("#accountDiv").DropListEMUI5({
                        items: r, onChange: function (r, t) {
                            e("#oldUserAccount").val(t);
                            if (t.indexOf("@") >= 0) {
                                e("#oldAuthCode").attr("placeholder", o.emailAuthCode)
                            } else {
                                e("#oldAuthCode").attr("placeholder", o.smsAuthCode)
                            }
                        }
                    });
                    var i = this;
                    i.disabled();
                    b.call(i, e("#oldAuthCode"), e("#inputAuthCode"), e("#auth_error_tip"));
                    e("#getAuthCodeBtn").on("click", function (r) {
                        if (e("#getAuthCodeBtn").attr("disabled")) {
                            return false
                        }
                        if (!validator(e("#accountDiv"), true)) {
                            return false
                        }
                        var t = e.parseJSON(e("#accountDiv input").val());
                        var o = {phoneOrEmail: t.account, authCodebtn: e("#getAuthCodeBtn")};
                        o.reqType = 3;
                        if (s == "verify") {
                            o.reqType = 0
                        }
                        o.account = t.account;
                        o.accountType = t.type;
                        o.errorTip = e("#auth_error_tip");
                        o.errorDiv = e("#inputAuthCode");
                        o.operType = l;
                        o.leftPix = "-260px";
                        o.rightPix = "-260px";
                        o.bottom = "20px";
                        g(o)
                    })
                }
            };
            e("<div>").Dialog(f).Dialog("show");
            var v = e("#accountDiv span").text();
            if (v.indexOf("@") >= 0) {
                e("#oldAuthCode").attr("placeholder", o.emailAuthCode)
            } else {
                e("#oldAuthCode").attr("placeholder", o.smsAuthCode)
            }
        }
    };

    function f(r) {
        var t = r.dialogMsg;
        var n = r.userAccount;
        var a = r.type;
        r.forgetHtml = r.forgetHtml || '<div class="center" style="margin-top:20px;"><a   target="_blank" class="a-EMUI5" href="' + i.forgetPwdLink + '">' + o.forgetPwd + "</a></div>";
        var s = '<div style="margin-bottom:10px;"><span style="color:#999;">' + o.huaweiAccount_colon_space + '</span>&nbsp;&nbsp;&nbsp;<span class="ar-eg">' + getExpressPhone(t) + "</span></div>" + '<div class="dinput-UI5" id="passwordDiv" style="margin-bottom:0">';
        s += '<div class="ico-div"><img class="eyeoff" id="passwdEye" src="' + i.eyeoff + '"/></div>';
        s += '<div class="input-div"><input  class="input-scroll" maxlength="32" type="password" oncopy="return false" oncut="return false"  autocomplete="off" id="password" placeholder="' + o.inputLingPwd + '" /></div>';
        s += '</div><div id="error_tip" class="error-tips-EMUI5"></div>' + r.forgetHtml;
        e("<div>").Dialog({
            title: o.validate_pwd_title, btnRight: {
                text: r.rBtnTxt, fn: function () {
                    var t = this;
                    if (!validator(e("#password"), true)) {
                        return false
                    }
                    var o = e("#password").val();
                    var s = r.accountType;
                    var d = r.thirdAcc;
                    T(s, n, o, function () {
                        if (a != "unbind" || i.frequentlyDev == 0) {
                            t.hide()
                        }
                        var e = {password: o, thirdAcc: d};
                        r.callbackFn.call(this, e, t)
                    })
                }
            }, btnLeft: {
                text: o.cancel_btn, fn: function () {
                }
            }, beforeAction: function () {
                var r = this;
                r.disabled();
                y(e("#passwdEye"), e("#password"));
                C();
                e("#password").on("keyup change", function () {
                    if (e("#password").val().trim() != "") {
                        r.enable();
                        return false
                    } else {
                        r.disabled()
                    }
                })
            }, html: s
        }).Dialog("show")
    }

    function v(r) {
        e("<div/>").Dialog({
            title: o.changePwd,
            btnRight: {
                text: o.ok, fn: function () {
                    var t = this;
                    if (!validator(e("#oldPassword"), true) || !validator(e("#newPassword"), true) || !validator(e("#confirmPassword"), true)) {
                        return false
                    }
                    var i = e("#oldPassword").val();
                    var n = e("#newPassword").val();
                    var a = {
                        oldPassword: i,
                        newPassword: n,
                        verfiyCode: r.verfiyCode,
                        verifyAccountType: r.verifyAccountType,
                        verifyAccount: r.verifyAccount,
                        dialog: t,
                        keepOtherDevLogon: e("#stLogoutCheckbox").prop("checked") ? 0 : 1
                    };
                    B(a, function () {
                        t.hide();
                        showTipDialog(o.changePwdSuccess, o.close_btn, o.changePwdSuccess, function () {
                        })
                    })
                }
            },
            btnLeft: {
                text: o.cancel_btn, fn: function () {
                }
            },
            beforeAction: function () {
                e("#pwdPic").click(function () {
                    var r = document.getElementById("newPassword").type;
                    if (r == "password") {
                        document.getElementById("newPassword").type = "text";
                        document.getElementById("confirmPassword").type = "text";
                        e("#pwdPic").attr("src", i.eyeon)
                    } else {
                        document.getElementById("newPassword").type = "password";
                        document.getElementById("confirmPassword").type = "password";
                        e("#pwdPic").attr("src", i.eyeoff)
                    }
                });
                e("#oldPasswdEye").click(function () {
                    var r = document.getElementById("oldPassword").type;
                    if (r == "password") {
                        document.getElementById("oldPassword").type = "text";
                        e(this).attr("src", i.eyeon)
                    } else {
                        document.getElementById("oldPassword").type = "password";
                        e(this).attr("src", i.eyeoff)
                    }
                });
                A.call(this);
                e("#newPassword").keyup(function () {
                    onPwdKeyUp4EMUI(this, e("#new_pwd_error_info"), e("#passwordDivTip"), "", "input-error-EMUI5", true, "", true)
                });
                registerPwdformatValidator();
                e(".stLogoutConfirm").on("click", "#stLogoutCheckbox", function (r) {
                    var t = e(this);
                    var o = t.next().find(".checkBox-icon");
                    if (t.prop("checked")) {
                        if (o) {
                            o.removeClass("tick-off-icon").addClass("tick-on-icon")
                        }
                    } else {
                        if (o) {
                            o.removeClass("tick-on-icon").addClass("tick-off-icon")
                        }
                    }
                });
                if (e("#st_faq_icon").length > 0) {
                    e("#st_faq_icon").hover(function () {
                        e(".st_faq_position").show()
                    }, function () {
                        e(".st_faq_position").hide()
                    })
                }
            },
            dialogStyle: i.msgDialogStyle,
            html: '<div style="margin-bottom:8px;font-size:15px">' + o.uc_change_pwd_enter_old + "</div>" + '<div class="dinput-UI5" id="oldPasswordDiv" style="margin-bottom:0">' + '<div class="ico-div"><img class="eyeoff" id="oldPasswdEye" src="' + i.eyeoff + '"/></div>' + '<div class="input-div"><input oncut="return false;" oncopy="return false" class="input-scroll" maxlength="32" type="password" autocomplete="off" id="oldPassword" placeholder="' + o.oldPwd + '"></div>' + '</div><div id="old_pwd_error_info" class="error-tips-EMUI5" style="margin-bottom:14px"></div>' + '<div style="margin-bottom:8px;font-size:15px">' + o.uc_change_pwd_enter_new + "</div>" + '<div class="line8-EMUI5"><div class="dinput-UI5" id="passwordDivTip" style="margin-bottom:0">' + '<div class="ico-div"><img class="eyeoff" id="pwdPic" src="' + i.eyeoff + '"></div>' + '<div class="input-div">' + '<input oncut="return false;" oncopy="return false" class="input-scroll cas_error" maxlength="32" type="password" autocomplete="off" id="newPassword" placeholder="' + o.uc_common_new_password + '" ></div>' + '</div><div id="new_pwd_error_info" class="error-tips-EMUI5" style="margin-bottom:14px"></div></div>' + '<div class="line-EMUI5 zero-margin">' + '<div class="dinput-UI5" id="confirmPasswordDiv" style="margin-bottom:0">' + '<div class="input-div">' + '<input oncut="return false;" oncopy="return false" class="input-scroll" maxlength="32" type="password" autocomplete="off" id="confirmPassword" placeholder="' + o.confirmPwd + '"></div>' + '<span id=""></span></div><div id="confirm_pwd_error_info" class="error-tips-EMUI5" style="margin-bottom:14px"></div></div>' + '<div id="msg_error_highIP" class="error-tips-EMUI5 addbtmpad-msg-top2pbtom14"></div>' + '<div class="stLogoutConfirm">' + '<input type="checkbox" class="checkbox vam" id="stLogoutCheckbox" name="stLogoutCheckbox" tabindex="4">' + '<label for="stLogoutCheckbox"><i id="stLogoutCheckbox_icon" class="checkBox-icon marginR6 tick-off-icon"></i>' + rss_new.st_logout_tips + "</label>" + '<div class="st_faq_box position_rel">' + '<span id="st_faq_icon"></span>' + '<div id="st_faq_des" class="st_faq_position"><span class="st_faq_arrow"></span>' + rss_new.st_logout_explain + "<br/>" + rss_new.st_relogin_tips + "</div>" + "</div>" + "</div>" + '<div class="line-EMUI5">' + '<div class="normal-tips-EMUI5 pwd-format-des-head">' + o.reset_pwd_format_title + " </div>" + '<div id="pwdLength" class="gray-tips-EMUI5 "><img class="pwd-format l" src="' + i.formatNo + '">' + "<span>" + o.reducePwd_format_1 + "</span></div>" + '<div id="pwdChar" class="gray-tips-EMUI5 "> <img class="pwd-format l" src="' + i.formatNo + '">' + "<span>" + o.reducePwd_format_2 + "</span></div>" + '<div id="pwdNumber" class="gray-tips-EMUI5 "> <img class="pwd-format l" src="' + i.formatNo + '"">' + "<span>" + o.reducePwd_format_3 + '</span></div></div><div class="line8-EMUI5">' + '<div class="normal-tips-EMUI5">' + o.pwd_strength + '&nbsp;<span id="pwdComplexFlag"></span></div></div>' + '<div class="line8-EMUI5"><div class="gray-tips-EMUI5"><div class="pwd-complex" style="margin-bottom:8px;">' + '<div id="pwdStong"></div></div></div>' + '<div style="margin-bottom:16px;padding-left:8px; color:#999">' + o.pwd_safe_tip + "</div></div>"
        }).Dialog("show");
        e("#pwdLength span").html(e("#pwdLength span").html().format(8, 32));
        e("#pwdNumber span").html(e("#pwdNumber span").html().format(1))
    }

    function h(r, t) {
        var o = [];
        var n = i.countryCodes.split(",");
        e.each(n, function (e, r) {
            var t = r.split("(");
            var n = t[0];
            var a = r.split("|")[0];
            var s = r.split("|")[1];
            n = n.replace("+", "00");
            if (s == i.countryCode) {
                i.default_country_code = n
            }
            if (r) {
                o.push({value: n, label: a})
            }
        });
        currentCountryCode = "0086";
        r.DropListEMUI5({
            items: o, defaultValue: i.default_country_code, onChange: function (r, o) {
                currentCountryCode = r;
                if (t && e(t).val()) {
                    validator(e(t), true)
                }
            }
        })
    }

    function m(r, t, i, n, a, s) {
        if (a === false) {
            a = null
        } else {
            a = {
                text: o.cancel_btn, fn: function () {
                }
            }
        }
        var d = "<div class='inptips2'>" + t + "</div>";
        e("<div>").Dialog({
            title: r, btnRight: {
                text: i, fn: function () {
                    this.hide();
                    n(this)
                }, color: s ? s : null
            }, btnLeft: a, html: d
        }).Dialog("show")
    }

    function _(r, t, i, n) {
        var a = this;
        validator.bind(r, {
            type: ["require", "email"],
            trim: false,
            validOnChange: false,
            msg_ct: "#email_error_info",
            msg: {require: o.validatorEmailRequire, email: o.validatorEmail},
            errorFunction: function (e, r) {
                t.addClass("input-error-EMUI5");
                switch (r.type) {
                    case"require":
                        i.html(o.validatorEmailRequire);
                        break;
                    case"email":
                        i.html(o.validatorEmail);
                        break
                }
            },
            successFunction: function (e, r) {
            },
            reInputFunction: function () {
                i.html("");
                t.removeClass("input-error-EMUI5")
            }
        });
        r.on("keyup paste", function () {
            var r = this;
            setTimeout(function () {
                if (n) {
                    if (e(r).val() && e(n).val()) {
                        a.enable()
                    } else {
                        a.disabled()
                    }
                }
            }, 0)
        });
        e(n).on("keyup paste", function () {
            var t = this;
            setTimeout(function () {
                if (n) {
                    if (e(t).val() && r.val()) {
                        a.enable()
                    } else {
                        a.disabled()
                    }
                }
            }, 0)
        })
    }

    function w(r, t, i, n) {
        var a = this;
        validator.bind(r, {
            type: ["require", "phoneNumber"],
            trim: false,
            validOnChange: true,
            msg_ct: "#phone_error_info",
            msg: {require: o.validatorPhoneRequire, phoneNumber: o.validatorPhone},
            errorFunction: function (e, r) {
                t.addClass("input-error-EMUI5");
                switch (r.type) {
                    case"require":
                        i.html(o.validatorPhoneRequire);
                        break;
                    case"phoneNumber":
                        i.html(o.validatorPhone);
                        break
                }
            },
            successFunction: function (e, r) {
            },
            reInputFunction: function () {
                i.html("");
                t.removeClass("input-error-EMUI5")
            }
        });
        r.on("keyup paste", function () {
            var r = this;
            setTimeout(function () {
                if (n) {
                    if (e(r).val() && e(n).val()) {
                        a.enable()
                    } else {
                        a.disabled()
                    }
                }
            }, 0)
        });
        e(n).on("keyup paste", function () {
            var t = this;
            setTimeout(function () {
                if (n) {
                    if (e(t).val() && r.val()) {
                        a.enable()
                    } else {
                        a.disabled()
                    }
                }
            }, 0)
        })
    }

    function y(r, t) {
        r.bind("click", function () {
            var r = t.attr("type");
            if (r == "password") {
                t[0].type = "text";
                e(this).attr("src", XSSGuard4URL(i.eyeon))
            } else {
                t[0].type = "password";
                e(this).attr("src", XSSGuard4URL(i.eyeoff))
            }
        })
    }

    function g(r) {
        var t = r.account;
        var a = r.phoneOrEmail;
        var s = r.accountType;
        var d = r.authCodebtn;
        var l = r.reqType;
        var c = r.siteID;
        var u = r.errorTip;
        var p = r.errorDiv;
        var f = "0";
        f = r.operType;
        var v;
        var h = 1;
        d.attr("disabled");
        var m = {10000001: rss_new.uc_error_10000001_1, "default": rss_new.uc_error_70002030};
        if (a.indexOf("@") != -1) {
            h = 1;
            v = {
                accountType: s,
                reqClientType: n,
                userAccount: t,
                emailReqType: l,
                operType: f,
                email: a,
                siteID: c,
                languageCode: i.lang
            };
            m["70001102"] = rss_new.uc_error_70001102_0;
            m["70001104"] = rss_new.uc_error_70001104_0;
            casAjaxObj.getEMailAuthCodeBySession(v, _, w, m)
        } else {
            h = 2;
            v = {
                accountType: s,
                userAccount: t,
                reqClientType: n,
                mobilePhone: a,
                operType: f,
                smsReqType: l,
                siteID: c,
                languageCode: i.lang
            };
            if (r.type == "identifyVerify") {
                v.smsReqType = "3"
            }
            m["70001102"] = rss_new.uc_error_70001102_1;
            m["70001104"] = rss_new.uc_error_70001104_1;
            casAjaxObj.getSMSAuthCodeBySession(v, _, w, m)
        }
        function _() {
            d.attr("disabled");
            if (v.email) {
                showMsgSuccess({
                    obj: e("#authCodeError"),
                    msg: o.emialHasSendTo.format(v.email),
                    leftPix: r.leftPix,
                    rightPix: r.rightPix,
                    bottom: r.bottom
                })
            } else {
                showMsgSuccess({
                    obj: e("#authCodeError"),
                    msg: o.phoneMegHasSendTo.format(getExpressPhone(v.mobilePhone)),
                    leftPix: r.leftPix,
                    rightPix: r.rightPix,
                    bottom: r.bottom
                })
            }
            d.addClass("auth_code_grey");
            jsInnerTimeout(d, o.resend)
        }

        function w(e, r) {
            d.removeAttr("disabled");
            var t = r.errorCode;
            if (p && p != "") {
                p.addClass("input-error-EMUI5")
            }
            if ("70001104" == t) {
                u.html(e, "left")
            } else {
                u.html(e)
            }
        }
    }

    function b(r, t, i) {
        var n = this;
        validator.bind(r, {
            type: ["require", "length", "number"],
            trim: true,
            min: 4,
            max: 8,
            validOnChange: false,
            msg: {require: o.inputAuthCodeTip, length: o.authCodeLength, number: o.authCodeLength},
            errorFunction: function (e, r) {
                t.addClass("input-error-EMUI5");
                switch (r.type) {
                    case"require":
                        i.html(o.inputAuthCodeTip);
                        break;
                    case"length":
                        i.html(o.authCodeLength);
                        break;
                    case"number":
                        i.html(o.authCodeLength)
                }
            },
            successFunction: function (e, r) {
            },
            reInputFunction: function () {
                i.html("");
                t.removeClass("input-error-EMUI5")
            }
        });
        validator.register("number", function (e, r) {
            var t = /^([0-9])+$/g;
            var o = t.test(e);
            return o ? true : false
        });
        e("#oldAuthCode").on("keyup change paste", function () {
            setTimeout(function () {
                if (e("#oldAuthCode").val().trim() != "") {
                    n.enable();
                    return false
                } else {
                    n.disabled()
                }
            }, 0)
        })
    }

    function C() {
        var r = e("#password");
        registerPwdformatValidator();
        validator.bind(r, {
            type: ["require", "length", "hasSpace", "pwdComplexity", "errorInput"],
            trim: false,
            validOnChange: false,
            min: 8,
            max: 32,
            errorFunction: function (r, t) {
                e("#passwordDiv").addClass("input-error-EMUI5");
                switch (t.type) {
                    case"require":
                        e("#error_tip").html(o.common_js_inputpwd);
                        break;
                    case"length":
                        e("#error_tip").html(o.error_10002073);
                        break;
                    case"hasSpace":
                        e("#error_tip").html(o.error_10002073);
                        break;
                    case"pwdComplexity":
                        e("#error_tip").html(o.error_10002073);
                        break;
                    case"errorInput":
                        e("#error_tip").html(o.error_10002073);
                        break
                }
            },
            successFunction: function (e, r) {
            },
            reInputFunction: function () {
                e("#error_tip").html("");
                e("#passwordDiv").removeClass("input-error-EMUI5")
            }
        })
    }

    function A() {
        var r = e("#oldPassword"), t = e("#newPassword"), i = e("#confirmPassword"), n = this;
        this.disabled();
        validator.bind(r, {
            type: ["require"],
            trim: false,
            validOnChange: false,
            min: 8,
            max: 32,
            msg_ct: "#old_pwd_error_info",
            msg: {require: o.common_js_inputpwd},
            errorFunction: function (r, t) {
                e("#oldPasswordDiv").addClass("input-error-EMUI5");
                switch (t.type) {
                    case"require":
                        e("#old_pwd_error_info").html(o.common_js_inputpwd);
                        break
                }
            },
            successFunction: function (e, r) {
            },
            reInputFunction: function () {
                e("#old_pwd_error_info").html("");
                e("#oldPasswordDiv").removeClass("input-error-EMUI5")
            }
        });
        validator.bind(t, {
            type: ["require", "strLength", "hasSpace", "pwdComplexity", "errorInput"],
            trim: false,
            validOnChange: true,
            min: 8,
            max: 32,
            msg_ct: "#new_pwd_error_info",
            errorFunction: function (r, t) {
                e("#passwordDivTip").addClass("input-error-EMUI5");
                switch (t.type) {
                    case"require":
                        e("#new_pwd_error_info").html(o.common_js_inputpwd);
                        break;
                    case"strLength":
                        e("#new_pwd_error_info").html(o.reducePwd_format_2);
                        break;
                    case"hasSpace":
                        e("#new_pwd_error_info").html(o.reducePwd_format_1);
                        break;
                    case"pwdComplexity":
                        e("#new_pwd_error_info").html(o.reducePwd_format_3);
                        break;
                    case"errorInput":
                        e("#new_pwd_error_info").html(o.reducePwd_inputError_desc);
                        break
                }
            },
            successFunction: function (e, r) {
            },
            reInputFunction: function () {
                e("#new_pwd_error_info").html("");
                e("#passwordDivTip").removeClass("input-error-EMUI5")
            }
        });
        validator.bind(i, {
            type: ["require", "pwdEqual"],
            trim: false,
            validOnChange: false,
            compareTo: t,
            msg_ct: "#confirm_pwd_error_info",
            msg: {require: o.common_js_confirmpwd, pwdEqual: o.common_js_pwdnotsame},
            errorFunction: function (r, t) {
                e("#confirmPasswordDiv").addClass("input-error-EMUI5");
                switch (t.type) {
                    case"require":
                        e("#confirm_pwd_error_info").html(o.common_js_confirmpwd);
                        break;
                    case"pwdEqual":
                        e("#confirm_pwd_error_info").html(o.common_js_pwdnotsame);
                        break
                }
            },
            successFunction: function (e, r) {
            },
            reInputFunction: function () {
                e("#confirm_pwd_error_info").html("");
                e("#confirmPasswordDiv").removeClass("input-error-EMUI5")
            }
        });
        r.on("blur", function () {
        }).on("keyup", function (e) {
            s()
        });
        t.on("blur", function () {
        }).on("keyup", function (e) {
            s()
        });
        i.on("blur", function () {
        }).on("keyup", function (e) {
            s()
        });
        function a() {
            e("#old_pwd_error_info").empty();
            e("#new_pwd_error_info").empty();
            e("#confirm_pwd_error_info").empty();
            validator(e(this), true);
            s()
        }

        function s() {
            if (r.val() && t.val() && i.val()) {
                n.enable()
            } else {
                n.disabled()
            }
        }
    }

    function E(e, r) {
        var t = {"userAccount": e, "reqClientType": n, "operType": 3};
        ajaxHandler("getUserAccInfoBySession", t, function (e) {
            var t = e.isSuccess, o = e.errorCode;
            if (t == "1") {
                r(e.userAcctInfoList, e.userID)
            } else {
                r([])
            }
        }, function () {
        }, false, "json")
    }

    function T(r, t, n, a) {
        var s = {accountType: r, userAccount: t, password: n, reqClientType: i.reqClientType};
        casAjaxObj.verifyPasswordBySessionFn(s, function (r) {
            var t = r.isSuccess;
            if (t == "1") {
                a()
            } else {
                e("#passwordDiv").addClass("input-error-EMUI5");
                if (r.errorCode == "10000001") {
                    e("#error_tip").html(o.error_10000001_2)
                } else if (r.errorCode == "10000002") {
                    e("#error_tip").html(o.error_10000002)
                } else if (r.errorCode == "10000004") {
                    e("#error_tip").html(o.error_10000004)
                } else if (r.errorCode == "70001201") {
                    e("#error_tip").html(o.error_70001201_2)
                } else if (r.errorCode == "70001401") {
                    e("#error_tip").html(o.error_70001401)
                } else if (r.errorCode == "70002057") {
                    e("#error_tip").html(o.error_70002057_2)
                } else if (r.errorCode == "70002058") {
                    e("#error_tip").html(o.error_70002058_1)
                } else {
                    e("#error_tip").html(o.verifyPwdError)
                }
            }
        })
    }

    function x(r, t, o, i, a, s, d, l) {
        var c = {accountType: t, userAccount: r, authCode: o.trim(), authOprType: i, reqClientType: n, operType: s};
        var u = {10000001: rss_new.common_wrong_authcode, "default": rss_new.common_wrong_authcode};
        var d = d || e(".errortip");
        casAjaxObj.chkAuthCodeBySession(c, p, f, u);
        function p() {
            var e = {oldAccountType: t, oldUserAccount: r, oldAuthCode: o, reqClientType: n};
            a(e)
        }

        function f(e) {
            l.addClass("input-error-EMUI5");
            d.html(e)
        }
    }

    function I(e, r, t, o) {
        var n = {"userAccount": e, "reqClientType": i.reqClientType, "isGetAll": r, "operType": 3, accountType: o};
        ajaxHandler("getUserAccListBySession", n, function (e) {
            var r = e.isSuccess, o = e.errorCode;
            if (r == "1") {
                t(e.userAcctInfoList, e.userID)
            } else {
                t([])
            }
        }, function () {
        }, false, "json")
    }

    function P(r) {
        var t = r.split("_");
        var n;
        if (t && t.length >= 2) {
            n = "_" + t[1]
        } else {
            n = ""
        }
        var a = '<div class="" >';
        var s = "";
        s = o.uc_note;
        var d = "";
        if (r.startWith("unbindEmail")) {
            a += '<p class="inptips2">' + o.unbindSecEmailTip + "</p>";
            d = o.unbind_btn
        } else if (r.startWith("unbindPhone")) {
            a += '<p class="inptips2">' + o.unbindSecPhoneTip + "</p>";
            d = o.unbind_btn
        }
        a += "</div>";
        var l = {
            userAccount: i.userAccount,
            accountType: i.accountType,
            dialogMsg: i.sensitiveUserName,
            rBtnTxt: o.next_btn
        };
        var c = {
            title: s, btnLeft: {
                text: o.cancel_btn, fn: function () {
                    this.hide()
                }
            }, btnRight: {
                text: d, fn: function () {
                    this.hide();
                    if (r.startWith("unbindEmail")) {
                        var t = {
                            lBtnTxt: o.cancel_btn,
                            rBtnTxt: o.unbind_btn,
                            queryCond: e("#emailVal" + n).text().trim(),
                            optType: "unbind",
                            callbackFn: unbindAccount,
                            operType: UNBIND_EMAIL_AUTH,
                            isLogin: true
                        };
                        l.callbackFn = function (e) {
                            if (e.password) {
                                password = e.password
                            }
                            p(t)
                        };
                        f(l)
                    } else if (r.startWith("unbindPhone")) {
                        var t = {
                            lBtnTxt: o.cancel_btn,
                            rBtnTxt: o.unbind_btn,
                            queryCond: e("#phoneVal" + n).text().trim(),
                            optType: "unbind",
                            callbackFn: unbindAccount,
                            operType: UNBIND_PHONE_AUTH,
                            isLogin: true
                        };
                        l.callbackFn = function (e) {
                            if (e.password) {
                                password = e.password
                            }
                            p(t)
                        };
                        f(l)
                    }
                }
            }, html: a, beforeAction: function () {
            }
        };
        e("<div>").Dialog(c).Dialog("show")
    }

    function D(r, t, i, n) {
        var a = "";
        if (r) {
            a += '<div class="dtit">' + r + "</div>"
        }
        a += '<div class="dcent">';
        a += '<div class="center" style="margin-bottom:10px">';
        a += '<img  src="' + i + '">';
        a += '<p class="inptips2">' + t + "</p>";
        a += "</div>";
        a += "</div>";
        var s = {
            text: a, btnFn: function () {
                this.hide();
                n()
            }, btnText: o.close_btn
        };
        e("<div>").DialogSimple(s).show()
    }

    function U(r, t, n, s, d) {
        if (!r) {
            return
        }
        var l = '<div id="oldAccObj"><div id="bindPhoneDialog">' + '<div class="dinput-UI5   userAccountDiv" id="phoneInputDiv-box" style="margin-bottom:0px">' + '<div class="l inputLeft"><div id="input_languageCode"><input id="countryCode" value="" type="hidden" /></div></div>' + '<div class="input-div" id="newUserAccDiv"><input class="input-number" type="tel" id="newUserAccount" name="phone" maxlength="20" placeholder="' + o.phoneNumber + '"  /></div>' + '</div><div id="phone_error_info" class="error-tips-EMUI5" style="margin-bottom:14px" ></div>' + '<div class="dinput-UI5 authCodeDiv" id="inputAuthCode" style="margin-bottom:0px">' + '<div class="getAuthbtn" act="getVerificationCode" id="getPhoneAuthCodeBtn" IntervalTime="60" ><span class="getAuthText">' + o.getAuthCode + '</span><div id="authCodeError"></div></div>' + '<div class="input-div"><input maxlength="8" id="newAuthCode" type="text"  placeholder="' + o.smsAuthCode + '"></div></div><div class="error-tips-EMUI5" id="new_auth_error_tip" ></div>' + '<div class="relative"><div class="pop hidden">' + ' <b class="uptick"></b>' + ' <p class="poptips">' + o.errorInfo + "</p></div></div></div></div>";
        var c = [];
        if (i.countryCodes) {
            i.countryCodes = i.countryCodes.substring(0, i.countryCodes.length - 1);
            var u = i.countryCodes.split(",");
            e.each(u, function (e, r) {
                var t = r.split("(");
                var o = t[0];
                var n = r.split("|")[0];
                var a = r.split("|")[1];
                o = o.replace("+", "00");
                if (a == i.countryCode) {
                    i.default_country_code = o
                }
                var s = {value: o, label: n};
                c.push(s)
            })
        }
        var p = {
            title: t, btnRight: {
                text: setBindPhoneEmailNextText(s), fn: function () {
                    var t = this;
                    var o = e("#input_languageCode input").val();
                    var i = e("#newUserAccount").val();
                    i = getPhoneNumber(i, o);
                    var n = {newAccountType: d, newUserAccount: i, newAuthCode: e("#newAuthCode").val()};
                    if (!validator(e("#bindPhoneDialog"), true)) {
                        return false
                    }
                    t.disabled();
                    L(r, n, s, e("#phoneInputDiv-box"), e("#phone_error_info"), e(".authCodeDiv"), e("#new_auth_error_tip"), function () {
                        t.hide()
                    })
                }
            }, btnLeft: {
                text: o.cancel_btn, fn: function () {
                }
            }, html: l, beforeAction: function () {
                e("#input_languageCode").DropListEMUI5({
                    items: c,
                    defaultValue: i.default_country_code,
                    onChange: function (r, t) {
                        var o = t.split("(");
                        if (o.length > 1) {
                            e("#countryCode").val(o[0])
                        }
                    }
                });
                var r = this;
                r.disabled();
                e("#getPhoneAuthCodeBtn").click(function (r) {
                    if (!validator(e("#input_languageCode"), true) || !validator(e("#newUserAccDiv"), true)) {
                        return false
                    }
                    if (e("#getPhoneAuthCodeBtn").attr("disabled")) {
                        return false
                    }
                    var t = e("#input_languageCode input").val();
                    var n = e("#newUserAccount").val();
                    var s = n;
                    if (i.siteID != "1") {
                        s = getPhoneNumber(n, t)
                    }
                    n = getPhoneNumber(n, t);
                    var l = {
                        account: n,
                        phoneOrEmail: n,
                        accountType: 2,
                        authCodebtn: e("#getPhoneAuthCodeBtn"),
                        reqType: 3,
                        operType: a
                    };
                    l.errorTip = e("#phone_error_info");
                    l.errorDiv = e("#phoneInputDiv-box");
                    l.leftPix = "-270px";
                    l.rightPix = "-270px";
                    l.bottom = "75px";
                    if (d == 2) {
                        g(l)
                    } else {
                        if (s == e("#security_phone_text").text().trim()) {
                            e("#phoneInputDiv-box").addClass("input-error-EMUI5");
                            e("#phone_error_info").html(o.error_not_allow_same_old_phone);
                            return
                        }
                        g(l)
                    }
                });
                w.call(r, e("#newUserAccount"), e("#phoneInputDiv-box"), e("#phone_error_info"), "#newAuthCode");
                b(e("#newAuthCode"), e(".authCodeDiv"), e("#new_auth_error_tip"))
            }
        };
        e("<div>").Dialog(p).Dialog("show");
        e("#oldAccObj").data("oldAccObj", r)
    }

    function k(r, t, i, n, a) {
        var d = '<div id="oldAccObj"><div id="bindEmailDialog">' + '<div id="newEmailDiv" class="dinput-UI5" style="margin-bottom:0px"><input id="newEmailAccount" maxlength="50" type="text" placeholder="' + o.mail_addr + '"></div><p class="error-tips-EMUI5" id="email_error_info" style="margin-bottom:14px"></p>' + '<div class="dinput-UI5 authCodeDiv" id="inputAuthCode" style="margin-bottom:0px">' + '<div class="getAuthbtn" act="getVerificationCode" id="getEmailAuthCodeBtn" IntervalTime="60" ><span class="getAuthText">' + o.getAuthCode + '</span><div id="authCodeError"></div></div>' + '<div class="input-div"><input maxlength="8" id="newAuthCode" type="text"  placeholder="' + o.emailAuthCode + '"></div></div><div class="error-tips-EMUI5" id="new_auth_error_tip" ></div>' + '<div class="relative"><div class="pop hidden">' + ' <b class="uptick"></b>' + ' <p class="poptips">' + o.errorInfo + "</p></div></div></div></div>";
        var l = {
            title: t, btnRight: {
                text: setBindPhoneEmailNextText(n), fn: function () {
                    var t = this;
                    var o = e("#newEmailAccount").val();
                    var i = {newAccountType: a, newUserAccount: o, newAuthCode: e("#newAuthCode").val()};
                    if (!validator(e("#bindEmailDialog"), true)) {
                        return false
                    }
                    t.disabled();
                    L(r, i, n, e("#newEmailDiv"), e("#email_error_info"), e(".authCodeDiv"), e("#new_auth_error_tip"), function () {
                        t.hide()
                    })
                }
            }, btnLeft: {
                text: o.cancel_btn, fn: function () {
                }
            }, html: d, beforeAction: function () {
                var r = this;
                r.disabled();
                e("#getEmailAuthCodeBtn").click(function (r) {
                    if (!validator(e("#newEmailDiv"), true)) {
                        return false
                    }
                    if (e("#getEmailAuthCodeBtn").attr("disabled")) {
                        return false
                    }
                    var t = e("#newEmailAccount").val();
                    var i = {
                        account: t,
                        phoneOrEmail: t,
                        accountType: a,
                        authCodebtn: e("#getEmailAuthCodeBtn"),
                        reqType: 3,
                        operType: s
                    };
                    i.errorTip = e("#email_error_info");
                    i.errorDiv = e("#newEmailDiv");
                    i.leftPix = "-270px";
                    i.rightPix = "-270px";
                    i.bottom = "75px";
                    if (a == 1) {
                        g(i)
                    } else {
                        if (t == e("#security_email_text").text().trim()) {
                            e("#newEmailDiv").addClass("input-error-EMUI5");
                            e("#email_error_info").html(o.error_not_allow_same_old_email);
                            return
                        }
                        g(i)
                    }
                });
                _.call(this, e("#newEmailAccount"), e("#newEmailDiv"), e("#email_error_info"), "#newAuthCode");
                b(e("#newAuthCode"), e(".authCodeDiv"), e("#new_auth_error_tip"))
            }
        };
        e("<div>").Dialog(l).Dialog("show");
        e("#oldAccObj").data("oldAccObj", r)
    }

    function M(t, n, a) {
        var s = '<div id="verifyEmailTipDialog">' + '<div class="dcent">' + '<div class="etbar mkcl">' + '<img class="emcheckimg" src="' + i.emailCheckPath + '">' + '<p class="inptips5 mbottom" style="display:none">' + o.uc_common_your_account + '<span id="verifyDialgEmail" style="word-break:break-all" class="del" href="#"></span></p>' + '<p class="inptips1">' + rss_new.common_verify_email_show.format(t) + "</p>" + '<div class="midbtn" id="iHaveVerifyBtn"><div class="btn r completeInfo"><span >' + o.uc_common_has_verrity + '</span><div class="errortip"></div></div></div>' + "</div>" + '<div class="line">' + '<div class="ebbar">' + '<p class="inptips1">' + o.verityEmailTip2 + "</p>" + '<p class="inptips4">' + o.verityEmailTip3 + "</p>" + '<p class="inptips4">' + o.verityEmailTip4 + " </p>" + '<p class="inptips4">' + o.verityEmailTip5 + " </p>" + '<p class="inptips4">' + o.verityEmailTip6 + '<a id="resendEmail" class="resend" href="#">' + o.resend + ' </a><p id="resendTip"></div></p></div></div></div></div>';
        var d = {
            title: "", btnRight: null, btnLeft: null, html: s, beforeAction: function () {
                e(".global_dialog_confirm_title", this.$dialog).css("border", "none");
                e("#resendEmail").click(function (r) {
                    q(t, n, e("#resendTip"))
                });
                e("#iHaveVerifyBtn").on("click", function (i) {
                    if (S(t, n)) {
                        e("#verifyEmailTipDialog").hide();
                        r.location.reload()
                    } else {
                        showError(e("#iHaveVerifyBtn .errortip"), o.verifiedUnfinished)
                    }
                })
            }
        };
        e("<div>").Dialog(d).Dialog("show")
    }

    function q(r, t, a, s) {
        var d = {accountType: t, userAccount: r, reqClientType: n, email: r, languageCode: i.lang};
        casAjaxObj.getActivateEMailURLBySessionFn(d, function (t) {
            var i = t.isSuccess;
            if (i == "1") {
                s && s();
                e("#verifyDialgEmail").text(r)
            } else {
                if (t.errorCode == "10000001") {
                    showError(a, o.error_10000001)
                } else if (t.errorCode == "10000002") {
                    showError(a, o.error_10000002)
                } else if (t.errorCode == "10000004") {
                    showError(a, o.error_10000004)
                } else if (t.errorCode == "70001102") {
                    showError(a, o.error_70001102_2)
                } else if (t.errorCode == "70001104") {
                    showError(a, o.error_70001104_3)
                } else if (t.errorCode == "70001201" || t.errorCode == "70002008") {
                    showError(a, o.error_70001201_2)
                } else if (t.errorCode == "70001401") {
                    showError(a, o.error_70001401)
                } else if (t.errorCode == "70002001") {
                    showError(a, o.error_70002001)
                } else if (t.errorCode == "70002018") {
                    showError(a, o.error_70002018)
                } else if (t.errorCode == "70002019") {
                    showError(a, o.error_70002019)
                } else {
                    showError(a, o.emailActivedFailed)
                }
            }
        })
    }

    function S(e, r) {
        var t = false;
        I(i.userAccount, 3, function (e) {
            if (e) {
                for (var o = 0; o < e.length; o++) {
                    var i = e[o];
                    if (r == i.accountType && (i.accountType == 1 || i.accountType == 2 || i.accountType == 5 || i.accountType == 6) && i.accountState == 1) {
                        t = true;
                        break
                    }
                }
            }
        });
        return t
    }

    function L(t, n, a, s, d, l, c, u) {
        var p = {
            oldAccountType: t.oldAccountType,
            oldUserAccount: t.oldUserAccount,
            opType: a,
            newAccountType: n.newAccountType,
            newUserAccount: n.newUserAccount,
            newAuthCode: n.newAuthCode.trim(),
            reqClientType: i.reqClientType,
            frequentlyDev: i.frequentlyDev,
            password: password
        };
        if (t.oldAuthCode) {
            p.oldAuthCode = t.oldAuthCode.trim()
        } else if (t.password) {
            p.password = t.password
        }
        ajaxHandler("setPhoneEmail", p, function (t) {
            var f = t.isSuccess;
            if (f == "1") {
                var v = t.isCurrentLoginAccount;
                u();
                if (a == 0) {
                    if (p.newAccountType == 1) {
                        D("", o.uc_common_email_addr_set_tip, i.successEmailImgPath, function () {
                            r.location.reload()
                        })
                    } else if (p.newAccountType == 2) {
                        D("", o.uc_common_phone_use_tip, i.successPhoneImgPath, function () {
                            if (i.oper == 6 || i.oper == 2) {
                                location.href = i.service
                            } else {
                                r.location.reload()
                            }
                        })
                    }
                } else if (a == 1) {
                    if (p.newAccountType == 1) {
                        var h = o.changeEmailSuccess;
                        if (v == "1") {
                            h = o.changeEmailOfLoginUserSuccess
                        }
                        D("", h, i.successEmailImgPath, function () {
                            if (v == "1") {
                                r.location.href = XSSGuard4URL(e("#logoutUrl").attr("href"))
                            } else {
                                r.location.reload()
                            }
                        })
                    } else if (p.newAccountType == 2) {
                        var h = o.changePhoneSuccess;
                        if (v == "1") {
                            h = o.changePhoneOfLoginuserSuccess
                        }
                        D("", h, i.successPhoneImgPath, function () {
                            if (v == 1) {
                                r.location.href = XSSGuard4URL(e("#logoutUrl").attr("href"))
                            } else {
                                r.location.reload()
                            }
                        })
                    }
                } else {
                    if (p.newAccountType == 5) {
                        showTipDialog(o.updataSuccess, o.close_btn, o.secEmailAddrSetTip, function () {
                            r.location.reload()
                        })
                    } else if (p.newAccountType == 6) {
                        showTipDialog(o.updataSuccess, o.close_btn, o.secPhoneUseTip, function () {
                            if (i.oper == 6 || i.oper == 2) {
                                location.href = i.service
                            } else {
                                r.location.reload()
                            }
                        })
                    }
                }
            } else {
                if (t.errorCode == "70006007") {
                    if (n.newAccountType == 1 || n.newAccountType == 5) {
                        s.addClass("input-error-EMUI5");
                        d.html(o.error_70006007_0)
                    } else {
                        s.addClass("input-error-EMUI5");
                        d.html(o.error_70006007_1)
                    }
                } else if (t.errorCode == "70001401") {
                    l.addClass("input-error-EMUI5");
                    c.html(o.error_70001401)
                } else if (t.errorCode == "70002002") {
                    s.addClass("input-error-EMUI5");
                    d.html(o.error_70002002)
                } else if (t.errorCode == "70002057") {
                    l.addClass("input-error-EMUI5");
                    c.html(o.error_70002057_0)
                } else if (t.errorCode == "70002058") {
                    l.addClass("input-error-EMUI5");
                    c.html(o.error_70002058)
                } else if (t.errorCode == "70002039") {
                    l.addClass("input-error-EMUI5");
                    c.html(o.error_70002039)
                } else if (t.errorCode == "70002100") {
                    l.addClass("input-error-EMUI5");
                    c.html(o.error_phone_secphone_not_same)
                } else if (t.errorCode == "70008800") {
                    c.html(o.error_risk_70008800)
                } else if (t.errorCode == "7009999") {
                    c.html(o.del_user_error_70002079)
                } else {
                    l.addClass("input-error-EMUI5");
                    c.html(o.error_10000001)
                }
            }
        }, function (e) {
            if (a == 0) {
                errorTip.html(o.bindAccountFailed)
            } else {
                errorTip.html(o.changeAccountFailed)
            }
        }, false, "json")
    }

    function B(r, t) {
        var a = this;
        var s = {
            oldPassword: r.oldPassword,
            newPassword: r.newPassword,
            reqClientType: n,
            verfiyCode: r.verfiyCode,
            verifyAccountType: r.verifyAccountType,
            verifyAccount: r.verifyAccount,
            accountType: i.accountType,
            senceID: r.senceID,
            keepOtherDevLogon: r.keepOtherDevLogon
        };
        var d = r.errorFn;
        var l = r.dialog;
        ajaxHandler("updateUserPwdByOld", s, function (r) {
            if (r && r.isSuccess == 1) {
                t()
            } else {
                var n = r.errorCode;
                if (n == "70008801") {
                    l.hide();
                    var a = [];
                    e.each(e.parseJSON(r.errorDesc).authCodeSentList, function (e, r) {
                        var t = {};
                        t.accountType = r.accountType;
                        t.userAccount = r.name;
                        a.push(t)
                    });
                    var c = {
                        lBtnTxt: o.cancel_btn,
                        rBtnTxt: o.next_btn,
                        queryCond: i.loginUserName,
                        optType: "modifyPWD_2",
                        accountList: a,
                        chkAuthFn: function (r) {
                            s.verfiyCode = r.oldAuthCode;
                            s.verifyAccountType = r.oldAccountType;
                            s.verifyAccount = r.oldUserAccount;
                            s.senceID = 5;
                            s.errorFn = function (r) {
                                e("#inputAuthCode").addClass("input-error-EMUI5");
                                e("#auth_error_tip").html(r)
                            };
                            B(s, t)
                        },
                        isLogin: true
                    };
                    p(c)
                } else if (n == "70002039") {
                    d(o.error_70002039)
                } else if (n == "70002070") {
                    if (d) {
                        d(o.error_70002070)
                    }
                    e("#passwordDivTip").addClass("input-error-EMUI5");
                    e("#new_pwd_error_info").html(o.error_70002070)
                } else if (n == "10000001") {
                    if (d) {
                        d(o.error_70002003_1)
                    }
                    e("#oldPasswordDiv").addClass("input-error-EMUI5");
                    e("#old_pwd_error_info").html(o.error_70002003_1)
                } else if (n == "70009016") {
                    if (d) {
                        d(o.error_70009016)
                    }
                    e("#passwordDivTip").addClass("input-error-EMUI5");
                    e("#new_pwd_error_info").html(o.error_70009016)
                } else if (n == "70002020") {
                    if (d) {
                        d(o.error_70002020)
                    }
                    e("#passwordDivTip").addClass("input-error-EMUI5");
                    e("#new_pwd_error_info").html(o.error_70002020)
                } else if (n == "70008800") {
                    if (d) {
                        d(o.error_risk_70008800)
                    }
                    e("#passwordDivTip").addClass("input-error-EMUI5");
                    e("#new_pwd_error_info").html(o.error_risk_70008800)
                } else if (n == "70002003") {
                    if (d) {
                        d(o.error_70002003_1)
                    }
                    e("#oldPasswordDiv").addClass("input-error-EMUI5");
                    e("#old_pwd_error_info").html(o.error_70002003_1)
                } else if (n == "70002057") {
                    if (d) {
                        d(o.error_70002057_1)
                    }
                    e("#oldPasswordDiv").addClass("input-error-EMUI5");
                    e("#old_pwd_error_info").html(o.error_70002057_1)
                } else if (n == "70002058") {
                    if (d) {
                        d(o.error_70002058_1)
                    }
                    e("#oldPasswordDiv").addClass("input-error-EMUI5");
                    e("#old_pwd_error_info").html(o.error_70002058_1)
                } else {
                    if (d) {
                        d(o.updatePwdError)
                    }
                    e("#oldPasswordDiv").addClass("input-error-EMUI5");
                    e("#old_pwd_error_info").html(o.updatePwdError)
                }
            }
        }, function () {
        }, false, "json")
    }

    r.sendEmialActive = q;
    r.isActiveAccount = S;
    r.showUserNoticeDialog = P;
    r.showSuccessTipDialog = D;
    r.showNotic = m;
    r.updatePWDDialog = v;
    r.openPhoneDialog = U;
    r.openEmailDialog = k;
    r.verifyEmailDialog = M;
    r.openAuthenDialog = p;
    r.getAuthCode = g;
    r.chkAuthCode = x;
    r.verifyPwd = T;
    r.verifyPwdDialog = f;
    r.checkPwdEye = y;
    r.validateAuthCode = b
})(jQuery, window);